package com.cmc.cloud.cmclink.doc.vo.multimodaltransport.multiop;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;

/**
 * 多式联运代理设置信息，发送邮件记录 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 * @author codegen
 */
@Data
public class MultiOpBaseVO {

        @Schema(description = "提单主信息id", requiredMode = Schema.RequiredMode.REQUIRED, example = "3554")
    @NotNull(message = "{multiop.blnoid.notnull}")
    private Long blnoId;
	
        @Schema(description = "进口/出口类型", requiredMode = Schema.RequiredMode.REQUIRED, maxLength = 2, example = "2")
    @NotBlank(message = "{multiop.imextype.notblank}")
	@Length(max = 2,message = "{multiop.imextype.length}")
    private String imExType;
	
        @Schema(description = "类型:Barge: 驳船公司; Custom Broker:报关公司;Operation Agent：操作代理;Custom Destination：报关用目的地;Custom Voyage：报关用进口航次;Contract No：支线费合同号;Liner Terminal：海船卸货码头", requiredMode = Schema.RequiredMode.REQUIRED, maxLength = 50, example = "2")
    @NotBlank(message = "{multiop.operationtype.notblank}")
	@Length(max = 50,message = "{multiop.operationtype.length}")
    private String operationType;
	
        @Schema(description = "content", maxLength = 300)
	@Length(max = 300,message = "{multiop.content.length}")
    private String content;
	
}
